﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    评价管理
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("AdminTopUc", "评价管理"); %>
    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table03">
        <% using (Ajax.BeginForm("CommentListUc", new { type = 0 }, new AjaxOptions { HttpMethod = "Get", UpdateTargetId = "listDiv", }))
           {%>
        <tr class="box06">
            <td width="10%" height="27" align="center">
                <div align="right">
                    教师 :
                </div>
            </td>
            <td width="13%" align="center" class="bg3">
                <div align="left">
                    <select name="teacherId" id="teacherId">
                        <option value="0">请选择</option>
                    </select>
                </div>
            </td>
            <td width="11%" align="center">
                <div align="right">
                    评价人 :</div>
            </td>
            <td width="12%" align="center" class="bg3">
                <div align="left">
                    <select name="reviewerType" id="reviewerType">
                        <option value="-1" selected="selected">全部</option>
                        <option value="0" >学生</option>
                        <option value="1">专家</option>
                    </select>
                </div>
                <div align="left">
                </div>
            </td>
            <td width="9%" align="center">
                <div align="right">
                    评级 :</div>
            </td>
            <td width="12%" align="center" class="bg3">
                <div align="left">
                    <select name="rank">
                        <option value="0" selected="selected">请选择</option>
                        <option value="1">差</option>
                        <option value="2">较差</option>
                        <option value="3">一般</option>
                        <option value="4">好</option>
                        <option value="5">很好</option>
                    </select>
                </div>
                <div align="left">
                </div>
            </td>
            <td align="center" class="box06">
                <div align="right">
                </div>
            </td>
            <td align="center" class="bg3">
                <div align="left">
                    <input type="submit" value="查询" />
                </div>
            </td>
        </tr>
        <% } %>
    </table>
    <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
            <td height="5" bgcolor="#FFFFFF">
            </td>
        </tr>
    </table>
    <div id="listDiv">
        <% Html.RenderAction("CommentListUc", new { type = 0, teacherId = 0, reviewerType = -1 }); %>
    </div>
    <div id="editDiv" title="查看评价">
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <script type="text/javascript">
        $(function () {
            selectLoad("teacherId", "Ajax/GetTeacher");

            $("#editDiv").dialog({
                autoOpen: false,
                height: 350,
                width: 550,
                modal: true,
                close: function () {
                }
            });
        });
        var editClickA = function (id) {
            $("#editDiv").html("loading...");
            $("#editDiv").load(appRoot + 'AdminComment/DetailsUc/' + id);
            $("#editDiv").dialog("open");
        };
    </script>
</asp:Content>
